home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4803 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  819 b 

  1. Path: newspost1.alt.net!usenet
  2. From: sdoherty@mi.net (Sean Doherty)
  3. Newsgroups: comp.lang.c
  4. Subject: Borland To Watcom (farmalloc) Help!
  5. Date: Wed, 07 Feb 1996 05:05:05 GMT
  6. Organization: AltNet - Affordable Usenet Access - http://www.alt.net
  7. Message-ID: <4f9875$gnm@tofu.alt.net>
  8. X-Newsreader: Forte Agent .99b.112
  9.  
  10. I am trying to convert borland C++ to Watcom C++, but I am having
  11. trouble with farmalloc.  It is improtant to note that I am using the
  12. 16 bit version of Watcom.
  13.  
  14. Borland C++
  15.  
  16. PcxPtr = (char*) farmalloc(307200L);
  17.  
  18. Watcom C++
  19.  
  20. PcxPtr = (char*) _fmalloc(307200L);
  21.  
  22. However, this produces the warning intragal value may be truncated
  23. during assignment.  Can someone please tell me if I can allocate
  24. memory larger than 64k in the 16 bit dos target and how to get rid of
  25. this error.
  26.  
  27. Thanks in advance.....
  28.  
  29.  
  30.  
  31.